<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<link rel="stylesheet" href="{hd:$smarty.const.__VIEW__}/Blog/css/css.css">
	<style>
	a{
			text-decoration: none;
			color: #666;
			margin-right: 10px;
		}
		a:hover{
			text-decoration: underline;
			color: #333;
		}
	th{
			color: #F6E4A5;
			background: #4C6080;
		}
		td{
			text-align: center;
		}
	table{
		margin-top:10px;
		margin-left: 10px;
	}
	#page{
		margin-left: 10px;
		margin-top: 10px;
	}
	</style>
</head>
<body>
	<table border="1" width="100%" height="100%" cellspacing="0" cellpadding="0">
		<tr>
			<th>bid</th>
			<th>标题</th>
			<th>栏目</th>
			<th>发表时间</th>
			<th>操作</th>
		</tr>
		{hd:section name=d loop=$data}
		<tr>
			<td>{hd:$data[d].bid}</td>
			<td>{hd:$data[d].title}</td>
			<td>{hd:$data[d].catname}</td>
			<td>{hd:$data[d].addtime|date_format:"%Y-%m-%d"}</td>
			<td>
				<a href="{hd:$smarty.const.__CONTROLLER__}&a=editBlog&bid={hd:$data[d].bid}">编辑</a>
				<a href="{hd:$smarty.const.__CONTROLLER__}&a=delBlog&bid={hd:$data[d].bid}" onclick="return confirm('您确定删除这条博客么')">删除</a>
				<a href="?m=Index&c=Index&a=blog&bid={hd:$data[d].bid}&cid={hd:$data[d].cid}" target="_blank">访问</a>
			</td>
		</tr>
		{hd:/section}
	</table>
	<div id="page">
		{hd:foreach item=value from=$page}
		{hd:$value}
		{hd:/foreach}
	</div>
</body>
</html>